﻿using System;
using System.Net;
using System.Runtime.Serialization;

namespace BusinessObjects
{
    [DataContract]
    public class Credit
    {
        [DataMember]
        public String Name
        {
            get;
            set;
        }

        [DataMember]
        public uint Score
        {
            get;
            set;
        }

        [DataMember]
        public uint Level
        {
            get;
            set;
        }

        [DataMember]
        public uint Time
        {
            get;
            set;
        }

        [DataMember]
        public uint CollectedHerbs
        {
            get;
            set;
        }

        [DataMember]
        public uint CollectedRubbish
        {
            get;
            set;
        }

        [DataMember]
        public uint Health
        {
            get;
            set;
        }

        public Credit(String name, uint score, uint level, uint time,
            uint collected_herbs, uint collected_rubbish, uint health)
        {
            Name = name;
            Score = score;
            Level = level;
            Time = time;
            CollectedHerbs = collected_herbs;
            CollectedRubbish = collected_rubbish;
            Health = health;
        }

        public Credit()
        {
            Name = null;
            Score = 0;
            Level = 0;
            Time = 0;
            CollectedHerbs = 0;
            CollectedRubbish = 0;
            Health = 0;
        }
    }
}
